Skip to main content
GET
/
v1
/
prices-history
Price history (PM wire shape — {history: [{t, p}]}).
curl --request GET \
  --url https://api.polysimulator.com/v1/prices-history
{
  "history": [
    {
      "t": 123,
      "p": 123
    }
  ]
}

Query Parameters

market
string | null

The market to query — a CLOB outcome TOKEN id (PM's param name; on real PM this also takes the token id despite the name). REQUIRED unless the legacy token_id alias is used.

token_id
string | null

Polysim legacy alias for market (pre-2026-06-11 the endpoint ONLY accepted this name, breaking py-clob-client ports). market wins when both are present.

interval
string | null

PM interval enum: 1h, 6h, 1d, 1w, 1m (one MONTH), max, all. Defaults to 1h when neither startTs nor endTs is given; omitted upstream when an explicit time range is supplied.

startTs
number | null

Only items after this unix-seconds timestamp.

endTs
number | null

Only items before this unix-seconds timestamp.

fidelity
integer | null

Bucket accuracy in minutes (PM param; default 1).

Required range: x >= 1
format
string
default:pm

pm (default): PM's exact {"history": [{"t", "p"}]} envelope with p as a JSON number. ohlcv: the legacy polysim bare array of {t, o, h, l, c} string-valued points (pre-2026-06-11 default — NOT PM wire-compatible; kept for back-compat).

Response

Successful Response

PM's exact GET /prices-history envelope: {"history": [...]}.

history
PmPricePoint · object[]
required